package com.gxa.mapper;

import com.gxa.pojo.Goods_Save;
import com.gxa.pojo.Receipt_Transfer;
import com.gxa.pojo.Transfer;
import com.gxa.pojo.Warehouse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


@Component
public interface TransferOrderMapper {


    Goods_Save queryGoodsNumber(@Param("goods_id") Object goods_id, @Param("out_warehouse_id") Object out_warehouse_id);



    List<Map> queryTransferOrder(@Param("currentPage") Integer newCurrentPage, @Param("pageSize") Integer pageSize,@Param("map") Map map,@Param("status") Integer status);

    int delTransferOrder(@Param("map") Map map,@Param("status") Integer delStatus);

    int autitTransferOrder(@Param("map") Map map, @Param("status") Integer autitStatus);


    Goods_Save queryGoodsByWarehouseId(@Param("in_warehouse_id") String in_warehouse_id, @Param("goods_id") String goods_id);


    Transfer queryTransferOrderGoodsNum(@Param("map") Map map);




    void updateGoodsNumByOut(@Param("number") Integer transfer_number, @Param("map") Map map);

    void updateGoodsNumByIn(@Param("number") Integer transfer_number, @Param("map") Map map);

    void updateGoodsNumByIn2(@Param("number") Integer transfer_number, @Param("map") Map map);

    void updateGoodsNumByOut2(@Param("number") Integer transfer_number, @Param("map") Map map);


    int saveTransderOrder(List<Transfer> list);

    int saveReceiptTransfer(Receipt_Transfer receipt_transfer);

}
